#ifndef _X_ACCEPT_H
#define _X_ACCEPT_H
#include "xDef.h"
#include "xSocket.h"
namespace xNet
{
    NET_ENGINE_CORE_API class xAccepter
    {
        public:
            xAccepter(std::string strIp,uint16 wPort);
        public:
            bool Init();
            void Finish();
            int  Accept();
        private:
            MACRO_PROPERTY_REF_READONLY(xServiceSocket,m_serviceSocket,ServiceSock)
            MACRO_PROPERTY_READONLY(EPOLL_FD,m_epFd,EPFd) 
            struct epoll_event m_events[1];
    };
}

#endif